package com.common.entity;

import com.applicationLayer.formbean.TownForm;
import com.sun.istack.internal.NotNull;

public class Town {

	@NotNull
		private int id_town;
		private String cp;
		private String name;
  	
	public Town(){
		
	}

	public Town(TownForm town) {
			this.setId_town(town.getId_town());
			this.setCp(town.getCp());
			this.setName(town.getName());
	}



	/** GETTER **/
	
	public int getId_town() {
		return id_town;
	}

	
	
	public String getName() {
		return name;
	}
	
	/** SETTER **/
	
	public void setId_town(int id_town) {
		this.id_town = id_town;
	}


	public void setName(String name) {
		this.name = name;
	}



	/**
	 * @return the cp
	 */
	public String getCp() {
		return cp;
	}



	/**
	 * @param cp the cp to set
	 */
	public void setCp(String cp) {
		this.cp = cp;
	}
}
